Try to avoid malloc SEGVs on Cygwin.
authorPaul Eggert <eggert@cs.ucla.edu>
Sun, 23 Jun 2013 18:18:47 +0000 (11:18 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sun, 23 Jun 2013 18:18:47 +0000 (11:18 -0700)
commit7a5265cc84a6af438dba42555c67344b99781ee4
treef0d524ed6fc0a8e1f67c5b40372aa41877aa2d2c
parente2f794e4833efb21606f10013efea3db42bc8ecb
Try to avoid malloc SEGVs on Cygwin.

* callproc.c, process.h (block_child_signal, unblock_child_signal):
Now extern.
* emacs.c (main): Catch SIGCHLD just before initializing gfilenotify.
* process.c (catch_child_signal): Block SIGCHLD while futzing with
the SIGCHLD handler, since the code is not atomic and (due to glib)
signals may be arriving now.
* sysdep.c (init_signals): Do not catch child signals here;
'main' now does that later, at a safer time.
src/ChangeLog
src/callproc.c
src/emacs.c
src/process.c
src/process.h
src/sysdep.c